const queue = [];
queue.push('aa')
queue.push('bb')
queue.push('cc')

while(queue.length){
    const top =queue.shift()
    console.log(top);
    
}